from __future__ import unicode_literals
from django.db import models
# Create your models here.
#ORM

class SJB_ZY(models.Model):#数据表信息
    ssml_sjb_bh=models.CharField(max_length=255,null=True)
    sjb_mc=models.CharField(max_length=255,null=True)
    sjb_zw_mc=models.CharField(max_length=255,null=True)
    is_create = models.BooleanField()

class SJX_ZY(models.Model):#数据项信息
    ssml_sjb_bh=models.CharField(max_length=255,null=True)
    ssml_sjx_bh=models.CharField(max_length=255,null=True)
    sjx_mc=models.CharField(max_length=255,null=True)
    sjx_zw_mc=models.CharField(max_length=255,null=True)

class UPLOAD_LOG(models.Model):#上传日志
    upload_user_name=models.CharField(max_length=255,null=True)
    file_name=models.CharField(max_length=255,null=True)
    ss_sjb_bh=models.CharField(max_length=255,null=True)
    is_success = models.BooleanField()
    is_transfer = models.BooleanField()
    upload_datetime=models.DateTimeField(auto_now=True)

class TRANSFER_LOG(models.Model):#传输日志
    uplode_file_name = models.CharField(max_length=255,null=True)
    sjb_zw_mc = models.CharField(max_length=255,null=True)
    transfer_user_name=models.CharField(max_length=255,null=True)
    transfer_user_jg = models.CharField(max_length=255,null=True)
    transfer_len=models.IntegerField(null=True)
    transfer_start_datetime=models.DateTimeField(null=True)
    transfer_end_datetime = models.DateTimeField(null=True)